﻿using MVVM;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Themes.Controls
{
    /// <summary>
    /// ProgressDialog.xaml 的交互逻辑
    /// </summary>
    public partial class ProgressDialog : UserControl
    {
        public ProgressDialog()
        {
            InitializeComponent();
        }
    }

    /// <summary>
    /// 进度对话框ViewModel
    /// </summary>
    public class ProgressDialogViewModel : DialogViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public ProgressDialogViewModel()
        {
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="content"></param>
        public void Show(String content = "正在加载...")
        {
            this.Content = content;
            base.Show();
        }
    }
}
